/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JFramePartido.java
 *
 * Created on 03/12/2011, 12:26:46 AM
 */
package Vista;

/**
 *
 * @author MARIALE
 */
public class JFramePartido extends javax.swing.JFrame {

    /** Creates new form JFramePartido */
    public JFramePartido() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanelPartido = new javax.swing.JPanel();
        jLabelCodigo = new javax.swing.JLabel();
        jLblFechaPartido = new javax.swing.JLabel();
        jLblEquipoMC = new javax.swing.JLabel();
        jLblEquipoVisitante = new javax.swing.JLabel();
        jLblArbitroPrincipal = new javax.swing.JLabel();
        jLblNroInings = new javax.swing.JLabel();
        jLblCarrerasImpHC = new javax.swing.JLabel();
        jLblCarrerasImpVisitante = new javax.swing.JLabel();
        jLblCuadrangularesHC = new javax.swing.JLabel();
        jLblCuadrangularesVisitante = new javax.swing.JLabel();
        jTxtCodigo = new javax.swing.JTextField();
        jTxtEquipoHC = new javax.swing.JTextField();
        jTxtEquipoVisitante = new javax.swing.JTextField();
        jTxtArbitroPrincipal = new javax.swing.JTextField();
        jTxtNroIninigs = new javax.swing.JTextField();
        jTxtNroIninigs1 = new javax.swing.JTextField();
        jTxtNroIninigs2 = new javax.swing.JTextField();
        jTxtNroIninigs3 = new javax.swing.JTextField();
        jTxtNroIninigs4 = new javax.swing.JTextField();
        jFormattedTextFieldFechaPartido = new javax.swing.JFormattedTextField();
        jLabel1 = new javax.swing.JLabel();
        jButtonGuardar = new javax.swing.JButton();
        jButtonSalir = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jPanelPartido.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Partido", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial Unicode MS", 1, 14))); // NOI18N

        jLabelCodigo.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabelCodigo.setText("Codigo:");

        jLblFechaPartido.setFont(new java.awt.Font("Verdana", 1, 12));
        jLblFechaPartido.setText("Fecha de Partido:");

        jLblEquipoMC.setFont(new java.awt.Font("Verdana", 1, 12));
        jLblEquipoMC.setText("Equipo Home Club:");

        jLblEquipoVisitante.setFont(new java.awt.Font("Verdana", 1, 12));
        jLblEquipoVisitante.setText("Equipo Visitante:");

        jLblArbitroPrincipal.setFont(new java.awt.Font("Verdana", 1, 12));
        jLblArbitroPrincipal.setText("Arbitro Principal:");

        jLblNroInings.setFont(new java.awt.Font("Verdana", 1, 12));
        jLblNroInings.setText("Nro Inings:");

        jLblCarrerasImpHC.setFont(new java.awt.Font("Verdana", 1, 12));
        jLblCarrerasImpHC.setText("Carreras Impulsadas del HomeClub:");

        jLblCarrerasImpVisitante.setFont(new java.awt.Font("Verdana", 1, 12));
        jLblCarrerasImpVisitante.setText("Carreras Impulsadas del Visitante:");

        jLblCuadrangularesHC.setFont(new java.awt.Font("Verdana", 1, 12));
        jLblCuadrangularesHC.setText("Cuadrangulares del Home Club:");

        jLblCuadrangularesVisitante.setFont(new java.awt.Font("Verdana", 1, 12));
        jLblCuadrangularesVisitante.setText("Cuadrangulares del Visitante:");

        jFormattedTextFieldFechaPartido.setEnabled(false);

        javax.swing.GroupLayout jPanelPartidoLayout = new javax.swing.GroupLayout(jPanelPartido);
        jPanelPartido.setLayout(jPanelPartidoLayout);
        jPanelPartidoLayout.setHorizontalGroup(
            jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelPartidoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelPartidoLayout.createSequentialGroup()
                        .addComponent(jLblEquipoVisitante)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 35, Short.MAX_VALUE)
                        .addComponent(jTxtEquipoVisitante, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelPartidoLayout.createSequentialGroup()
                        .addComponent(jLblArbitroPrincipal)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)
                        .addComponent(jTxtArbitroPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelPartidoLayout.createSequentialGroup()
                        .addComponent(jLblNroInings)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 72, Short.MAX_VALUE)
                        .addComponent(jTxtNroIninigs, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLblCarrerasImpHC)
                    .addComponent(jLblCarrerasImpVisitante)
                    .addComponent(jLblCuadrangularesHC)
                    .addComponent(jLblCuadrangularesVisitante)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelPartidoLayout.createSequentialGroup()
                        .addGroup(jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLblEquipoMC)
                            .addComponent(jLabelCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLblFechaPartido))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE)
                        .addGroup(jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTxtCodigo, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)
                            .addComponent(jFormattedTextFieldFechaPartido, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTxtEquipoHC, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(18, 18, 18)
                .addGroup(jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTxtNroIninigs1, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTxtNroIninigs3, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTxtNroIninigs4, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTxtNroIninigs2, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(22, 22, 22))
        );
        jPanelPartidoLayout.setVerticalGroup(
            jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelPartidoLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelCodigo)
                    .addComponent(jTxtCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLblFechaPartido)
                    .addComponent(jFormattedTextFieldFechaPartido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLblEquipoMC)
                    .addComponent(jTxtEquipoHC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLblEquipoVisitante)
                    .addComponent(jTxtEquipoVisitante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLblArbitroPrincipal)
                    .addComponent(jTxtArbitroPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLblNroInings)
                    .addComponent(jTxtNroIninigs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelPartidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelPartidoLayout.createSequentialGroup()
                        .addComponent(jTxtNroIninigs1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTxtNroIninigs2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(13, 13, 13)
                        .addComponent(jTxtNroIninigs3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTxtNroIninigs4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelPartidoLayout.createSequentialGroup()
                        .addComponent(jLblCarrerasImpHC)
                        .addGap(18, 18, 18)
                        .addComponent(jLblCarrerasImpVisitante)
                        .addGap(18, 18, 18)
                        .addComponent(jLblCuadrangularesHC)
                        .addGap(18, 18, 18)
                        .addComponent(jLblCuadrangularesVisitante))))
        );

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Generales/BESSSSBOL.jpg"))); // NOI18N

        jButtonGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Generales/guardar.png"))); // NOI18N
        jButtonGuardar.setText("AGREGAR");
        jButtonGuardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarActionPerformed(evt);
            }
        });

        jButtonSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Generales/exit.png"))); // NOI18N
        jButtonSalir.setText("SALIR");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 647, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGroup(layout.createSequentialGroup()
                .addGap(108, 108, 108)
                .addComponent(jPanelPartido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(187, Short.MAX_VALUE)
                .addComponent(jButtonGuardar)
                .addGap(18, 18, 18)
                .addComponent(jButtonSalir, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(193, 193, 193))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelPartido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonSalir, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-663)/2, (screenSize.height-622)/2, 663, 622);
    }// </editor-fold>//GEN-END:initComponents

private void jButtonGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGuardarActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButtonGuardarActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(JFramePartido.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(JFramePartido.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(JFramePartido.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(JFramePartido.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new JFramePartido().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonGuardar;
    private javax.swing.JButton jButtonSalir;
    private javax.swing.JFormattedTextField jFormattedTextFieldFechaPartido;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabelCodigo;
    private javax.swing.JLabel jLblArbitroPrincipal;
    private javax.swing.JLabel jLblCarrerasImpHC;
    private javax.swing.JLabel jLblCarrerasImpVisitante;
    private javax.swing.JLabel jLblCuadrangularesHC;
    private javax.swing.JLabel jLblCuadrangularesVisitante;
    private javax.swing.JLabel jLblEquipoMC;
    private javax.swing.JLabel jLblEquipoVisitante;
    private javax.swing.JLabel jLblFechaPartido;
    private javax.swing.JLabel jLblNroInings;
    private javax.swing.JPanel jPanelPartido;
    private javax.swing.JTextField jTxtArbitroPrincipal;
    private javax.swing.JTextField jTxtCodigo;
    private javax.swing.JTextField jTxtEquipoHC;
    private javax.swing.JTextField jTxtEquipoVisitante;
    private javax.swing.JTextField jTxtNroIninigs;
    private javax.swing.JTextField jTxtNroIninigs1;
    private javax.swing.JTextField jTxtNroIninigs2;
    private javax.swing.JTextField jTxtNroIninigs3;
    private javax.swing.JTextField jTxtNroIninigs4;
    // End of variables declaration//GEN-END:variables
}
